<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
          <div class="nav-tabs-custom" style="box-shadow:0 0 0 0; margin:5px;">
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" id="cm_id" name="cm_id" value="{$info['cm_id']|default=''}"> 
       <div class="box-body">
           <div class="tab-content tab-fade fade active in " id="tab_1"> 
           <div class="row">

                <div class="col-md-6 col-sm-6 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">用户ID：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" id="cm_uid" name="cm_uid" value="{$info.cm_uid|default=''}" readonly> 
              </div>   
              </div>          
                 <div class="col-md-6 col-sm-6 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">用户昵称：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                {notempty name="info.user.user_id"}<input type="text" class="form-control" name="cm_username" value="{$info['user']['nickname']|default=''}" readonly>{else /}<input type="text" class="form-control" name="cm_username" value="{$info['cm_username']|default=''}">{/notempty}
              </div>   
              </div>   
                  <div class="col-md-4 col-sm-6 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">内容ID：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control" id="cm_vid" name="cm_vid" value="{$info.cm_vid|default=''}"> 
              </div>   
              </div>                                 
               <div class="col-md-4 col-sm-6 col-xs-12 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">内容模型：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control" id="cm_name" name="cm_name" value="{$model[$info.cm_sid]['title']}" disabled>
              </div>   
              </div>

               <div class="col-md-4 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">内容标题：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control text-center" id="cm_name" name="cm_name" value="{$info.cm_name|default=''}" disabled> 
              </div>   
              </div>


               <div class="col-md-4 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">一级ID：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control text-center" id="cm_pid" name="cm_pid" value="{$info.cm_pid|default=''}" > 
              </div>   
              </div>
               <div class="col-md-4 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">上级ID：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control text-center" id="cm_tid" name="cm_tid" value="{$info.cm_tid|default=''}" > 
              </div>   
              </div>
               <div class="col-md-4 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">上级用户ID：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control text-center" id="cm_tuid" name="cm_tuid" value="{$info.cm_tuid|default=''}" > 
              </div>   
              </div>
               <div class="col-md-3 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">支持数量：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control text-center" id="cm_up" name="cm_up" value="{$info.cm_up|default='0'}" > 
              </div>   
              </div>
                <div class="col-md-3 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">反对数量：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control text-center" id="cm_down" name="cm_down" value="{$info.cm_down|default='0'}" > 
              </div>   
              </div>             
                 <div class="col-md-3 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">评论IP：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
             <input type="text" class="form-control text-center" id="cm_ip" name="cm_ip" value="{$info.cm_ip|long2ip}" disabled> 
              </div>   
              </div>
                  <div class="col-md-3 col-sm-6 col-xs-6 mb10">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">评论状态：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <select name="cm_status" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
          <option value="1">已审</option>
          <option value="0" {eq name="info.cm_status" value="0" }selected{/eq}>未审</option>
                </select>
              </div>   
              </div>                             
    
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">评论内容：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
                <textarea   id="cm_content" name="cm_content"  style=" width:100%; height:200px">{$info.cm_content|default=''}</textarea>
              </div> 
                <div class="input-group margin15">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">更新时间：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
              <input type="text" name="cm_addtime" value="{notempty name="info.cm_addtime"}{$info.cm_addtime|date='Y-m-d H:i:s',###}{else/}{:date('Y-m-d H:i:s',time())}{/notempty}" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss">
              
<span class="input-group-btn">
<span class="pretty success input-xz">
<input name="cm_checktime" type="checkbox" value="1" id="checkbox" {notempty name=":config('system.system_uptime')"}checked{/notempty}> 
<label><i class="mdi mdi-check"></i> 更新时间</label>
</span>
</span>     
              </div>              
               </div>
              <!-- /row --> 
            </div>
            <!-- /.tab_1-->
         
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</div>
<!-- /.box-body --> 
</form>
</div>
<!-- /.nav-tabs-custom -->    
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.vod();
    $(document).on('click', ".addurl", function() {
			var $old = $("#urldata>.urldata:last").html();
			$urln = $("#urldata>.urldata").length;
			$old = $old.replace("周期" + $urln, "周期" + ($urln + 1));
			$("#urldata>.urldata:last-child").after('<div class="urldata input-group mb10" id="data_' + ($urln + 1) + '">' + $old + '</div>');
			$("#urldata>.urldata:last #cm_date").val($("#cm_date:last option").val());
			$("#urldata>.urldata:last textarea").val('');
					
	})		

});	
</script>
</body>
</html>
